package com.gukun.springboot.tdengine.domain.backuprecover;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author zhang
 */
@Data
@TableName(value = "backup_recover_log")
public class BackupRecoverLogEntity {
    @TableId(value = "id")
    private String id;
    @TableField(value = "task_id")
    private String taskId;
    @TableField(value = "start_time")
    private String startTime;
    @TableField(value = "end_time")
    private String endTime;
    /**
     * 备份结果，0 失败 1 成功
     */
    @TableField(value = "status")
    private int status;
    /**
     * 备份记录的日志
     */
    @TableField(value = "message")
    private String message;

    /**
     * 备份类型，2 表备份 1 数据备份
     */
    @TableField(value = "target_type")
    private int operateTarget;

    /**
     * 操作类型
     * 1 恢复 2 备份
     */
    @TableField(value = "operate_type")
    private int operateType;

    /**
     * 最终存储数据的文件夹名称
     */
    @TableField(value = "file_path")
    private String filePath;

    @TableField(exist = false)
    private float progress;

    @TableField(exist = false)
    private int current;
    @TableField(exist = false)
    private int size;
    @TableField(exist = false)
    private int total;
}
